//
//  KDMainwordAddView.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/11/4.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@class KDMainWordAddViewModel;
@protocol KDMainwordAddViewDelegate;
@interface KDMainwordAddView : UIView

@property (nonatomic, weak) id<KDMainwordAddViewDelegate> delegate;
@property (nonatomic, strong) KDMainWordAddViewModel *model;


+ (instancetype)wordView;
@end
@protocol KDMainwordAddViewDelegate <NSObject>
@optional
/**
 *  高度改变了
 *
 *  @param mainWordView
 *  @param add          0是变低了，1是变高了
 *  @param height       高度变化的绝对值
 */
- (void)KDMainwordAddView:(KDMainwordAddView *)mainWordView HeightChangeWithIfAdd:(BOOL)add AndHeight:(CGFloat)height;
/**
 *  当是只能加一个的时候如果按了return按钮就返回主页面
 */
- (void)KDMainwordAddViewWithreturnClick:(KDMainwordAddView *)mainWordView ;
@optional;
/**
 *  当wordTf的高度被键盘挡住的时候会调用
 */
- (void)wordTfCoverdByKeyboardWithKDMainwordAddView:(KDMainwordAddView *)mainWordView;
@end